var gulp = require("gulp");
var babel = require("gulp-babel");

gulp.task("default", function () {
  return gulp.src("src/before.js")
    .pipe(babel({
        presets:["es2015"]
    }))
    .pipe(gulp.dest("dist"));
});

gulp.task("watch",function(){
    gulp.watch('./src/before.js',["default"])
})